{% raw %}
<script id="upload_show_tpl" type="text/html">
<div style="padding: 15px">
    {{# if (d.is_control === true) { }}
    <p>文件名：{{ d.filename }}</p>
    <p>唯一标识：{{ d.sha }}</p>
    <p>上传时间：{{ d.ctime }}</p>
    <p>所属用户：{{ d.user }}</p>
    <p>
        <div class="layui-form" action="">
            所属相册：<input type="text" name="album" autocomplete="off" value="{{ d.album || '' }}" list="list_user_albums" class="my-input">
            <datalist id="list_user_albums"></datalist>
            <input type="hidden" name="sha" autocomplete="off" value="{{ d.sha }}">
            <button type="button" title="更新相册名" class="layui-btn layui-btn-xs layui-btn-radius" lay-submit lay-filter="updateAlbumSubmit"><i class="layui-icon layui-icon-ok"></i></button>
        </div>
    </p>
    <p>图片状态：
        {{# if (d.status === 'enabled') { }}
        <scan style="color:green">{{ d.status }}</scan>
        {{# } else { }}
        <scan style="color:red">{{ d.status }}</scan>
        {{# } }}
    </p>
    {{# } else { }}
    <p>文件名：<a href="{{ d.api }}" target="_blank">{{ d.filename }}</a></p>
    {{# } }}
    <p>图片保存者：{{ d.sender }}</p>
    <div class="layui-row layui-col-space2">
        <div class="layui-col-xs12 layui-col-sm2 layui-col-md2">
            <a href="{{ d.src }}" target="_blank" {{# if (d.is_control === true){ }}download="{{ d.filename }}"{{# } }}>
                <img src="{{ d.get_src('loadmypic') }}" style="max-width:80px;padding-top:61px;">
            </a>
        </div>
        <div class="layui-col-xs12 layui-col-sm10 layui-col-md10">
            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li class="layui-this">URL</li>
                    <li>HTML</li>
                    <li>rST</li>
                    <li>Markdown</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <textarea class="layui-textarea" readonly id="url">{{ d.get_src('url') }}</textarea>
                        <button type="button" class="layui-btn layui-btn-sm layui-btn-fluid upload_show_copy"
                            data-copyid="#url">复制</button>
                    </div>
                    <div class="layui-tab-item">
                        <textarea class="layui-textarea" readonly
                            id="html">&lt;img src="{{ d.get_src('html') }}" title="{{ d.title }}" alt="{{ d.filename }}"&gt;</textarea>
                        <button type="button" class="layui-btn layui-btn-sm layui-btn-fluid upload_show_copy"
                            data-copyid="#html">复制</button>
                    </div>
                    <div class="layui-tab-item">
                        <textarea class="layui-textarea" readonly id="rst">.. image:: {{ d.get_src('rst') }}</textarea>
                        <button type="button" class="layui-btn layui-btn-sm layui-btn-fluid upload_show_copy"
                            data-copyid="#rst">复制</button>
                    </div>
                    <div class="layui-tab-item">
                        <textarea class="layui-textarea" readonly
                            id="markdown">![{{ d.filename }}]({{ d.get_src('markdown') }})</textarea>
                        <button type="button" class="layui-btn layui-btn-sm layui-btn-fluid upload_show_copy"
                            data-copyid="#markdown">复制</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</script>
{% endraw %}